package com.jielihaofeng.chat.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
* 消息表
*
* @author 阿沐 babamu@126.com
* @since 1.0.0 2022-07-22
*/
@Data
@Schema(description = "消息表")
public class ChatMessageVO implements Serializable {
	private static final long serialVersionUID = 1L;

	@Schema(description = "消息id")
	private Long id;

	@Schema(description = "发送方id")
	private Long sender;

	@Schema(description = "接收方id")
	private Long receiver;

	@Schema(description = "聊天类型 0：单聊 1：群聊")
	private String type;

	@Schema(description = "内容")
	private String content;

	@Schema(description = "消息状态 0：已发送 1：已读")
	private Integer status;

	@Schema(description = "时间字符串")
	private String time;

	@Schema(description = "时间")
	private Date createTime;

	@Schema(description = "发送人头像")
	private String avatar;
}